import Taro, { Component } from "@tarojs/taro";
import { View, Text, Image } from "@tarojs/components";
import { getHisRoute } from '../../utils/getRouterAndParams'
import "./index.less";

class Template extends Component {
  render() {
    return (
      <View className="head">
        <View className="final-back-page">
          <Image
            className="back-page"
            onClick={() => {
             const {urlPath} = this.props
              Taro.redirectTo({
                url:urlPath
              })
            }}
            src={require("../../assets/img/back.png")}
          />
        </View>
        <Text className="title">{this.props.title}</Text>
      </View>
    );
  }
}
export default Template;
